//包邮
import http from "@/utils/http";
import {EnumAlias} from "@/utils/common";
//分页
export function postageManagePage(params?: object) {
  return http({
    url: `${EnumAlias.PROJECT}/${EnumAlias.MODULE_MALL}/postageManage/page`,
    method: "get",
    params
  });
}
//详情
export function postageManageDetail(params?: object) {
  return http({
    url: `${EnumAlias.PROJECT}/${EnumAlias.MODULE_MALL}/postageManage/detail`,
    method: "get",
    params
  });
}
//list集合
export function postageManageList(params?: object) {
  return http({
    url: `${EnumAlias.PROJECT}/${EnumAlias.MODULE_MALL}/postageManage/list`,
    method: "get",
    params
  });
}
//创建
export function postageManageCreate(data?: object) {
  return http({
    url: `${EnumAlias.PROJECT}/${EnumAlias.MODULE_MALL}/postageManage/create`,
    method: "post",
    data
  });
}
//修改
export function postageManageUpdate(data?: object) {
  return http({
    url: `${EnumAlias.PROJECT}/${EnumAlias.MODULE_MALL}/postageManage/update`,
    method: "post",
    data
  });
}
//添加包邮区域
export function postageManageCreateMailArea(data?: object) {
  return http({
    url: `${EnumAlias.PROJECT}/${EnumAlias.MODULE_MALL}/postageManage/createMailArea`,
    method: "post",
    data
  });
}
//批量修改包邮金额
export function postageManageUpdateMailArea(data?: object) {
  return http({
    url: `${EnumAlias.PROJECT}/${EnumAlias.MODULE_MALL}/postageManage/updateMailArea`,
    method: "post",
    data
  });
}
//删除指定包邮区域
export function postageManageMailAreaDelete(data?: object) {
  return http({
    url: `${EnumAlias.PROJECT}/${EnumAlias.MODULE_MALL}/postageManage/MailAreaDelete`,
    method: "post",
    data
  });
}
